Remove more allocatoins in index querying
authorAlex Crichton <alex@alexcrichton.com>
Fri, 2 Jun 2017 15:58:08 +0000 (08:58 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 5 Jun 2017 14:36:44 +0000 (07:36 -0700)
commit74777c1274855c5673269f494c418e7aa1378aa4
treef13b81eb4200fe59f9702e7ec356a678ac29994a
parentc122e600cff461db7d77dee42e52d128f4060c39
Remove more allocatoins in index querying

Removing some allocations arounds the stored hashes by having nested hash maps
instead of tuple keys. Also remove an intermediate array when parsing
dependencies through a custom implementation of `Deserialize`. While this
doesn't make this code path blazingly fast it definitely knocks it down in the
profiles below other higher-value targets.
Cargo.lock
Cargo.toml
src/cargo/lib.rs
src/cargo/sources/registry/index.rs
src/cargo/sources/registry/mod.rs
src/cargo/util/paths.rs